package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MingCardRecordMapper;
import com.ruoyi.system.domain.MingCardRecord;
import com.ruoyi.system.service.IMingCardRecordService;

/**
 * 打卡记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-21
 */
@Service
public class MingCardRecordServiceImpl implements IMingCardRecordService 
{
    @Autowired
    private MingCardRecordMapper mingCardRecordMapper;

    /**
     * 查询打卡记录
     * 
     * @param id 打卡记录主键
     * @return 打卡记录
     */
    @Override
    public MingCardRecord selectMingCardRecordById(Long id)
    {
        return mingCardRecordMapper.selectMingCardRecordById(id);
    }

    /**
     * 查询打卡记录列表
     * 
     * @param mingCardRecord 打卡记录
     * @return 打卡记录
     */
    @Override
    public List<MingCardRecord> selectMingCardRecordList(MingCardRecord mingCardRecord)
    {
        return mingCardRecordMapper.selectMingCardRecordList(mingCardRecord);
    }

    @Override
    public List<MingCardRecord> selectMingCardRecordListDay(MingCardRecord mingCardRecord)
    {
        return mingCardRecordMapper.selectMingCardRecordListDay(mingCardRecord);
    }

    @Override
    public List<MingCardRecord> selectMingCardRecordListWeek(MingCardRecord mingCardRecord)
    {
        return mingCardRecordMapper.selectMingCardRecordListWeek(mingCardRecord);
    }

    @Override
    public List<MingCardRecord> selectMingCardRecordListMonth(MingCardRecord mingCardRecord)
    {
        return mingCardRecordMapper.selectMingCardRecordListMonth(mingCardRecord);
    }

    /**
     * 新增打卡记录
     * 
     * @param mingCardRecord 打卡记录
     * @return 结果
     */
    @Override
    public int insertMingCardRecord(MingCardRecord mingCardRecord)
    {
        return mingCardRecordMapper.insertMingCardRecord(mingCardRecord);
    }

    /**
     * 修改打卡记录
     * 
     * @param mingCardRecord 打卡记录
     * @return 结果
     */
    @Override
    public int updateMingCardRecord(MingCardRecord mingCardRecord)
    {
        return mingCardRecordMapper.updateMingCardRecord(mingCardRecord);
    }

    /**
     * 批量删除打卡记录
     * 
     * @param ids 需要删除的打卡记录主键
     * @return 结果
     */
    @Override
    public int deleteMingCardRecordByIds(Long[] ids)
    {
        return mingCardRecordMapper.deleteMingCardRecordByIds(ids);
    }

    /**
     * 删除打卡记录信息
     * 
     * @param id 打卡记录主键
     * @return 结果
     */
    @Override
    public int deleteMingCardRecordById(Long id)
    {
        return mingCardRecordMapper.deleteMingCardRecordById(id);
    }
}
